-- piece_summon
-- create by wangy
-- 召唤兽能力提升
-- prop[2]对应不同棋子id组合
return {
    apply = function(prop, baseValue)
        -- 数值
        local value = math.modf(baseValue * prop[3] / 1000);

        return value;
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local style = prop[2];
        if style == 1 then
            desc = string.gsub(desc, "{0}", getLocStr("piece_summon1"));
        end
        if style == 2 then
            desc = string.gsub(desc, "{0}", getLocStr("piece_summon2"));
        end
        if style == 3 then
            desc = string.gsub(desc, "{0}", getLocStr("piece_summon3"));
        end
        if style == 4 then
            desc = string.gsub(desc, "{0}", getLocStr("piece_summon4"));
        end
        if style == 5 then
            desc = string.gsub(desc, "{0}", getLocStr("piece_summon5"));
        end

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
